package com.wzz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.PipedReader;
import java.util.Date;

/**
 * @author DarkClown
 * @date 2024-08-05 09:28
 * @project_name day0805-week3
 * @parem
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Product {
    @TableId(type = IdType.AUTO)
    private Integer pid;
    private String pname;
    private String lot = "123123";
    private String security;
    private String url = "zhangjiakou.aliyuncs.com/images/tanhua/avatar_7.jpg";
    private String agent;
    private String partner;
    private String fname;
    private String power;
    private Integer myStatus;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date creatTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    //防伪码长度
    @TableField(exist = false)
    private Integer num;
    //前缀
    @TableField(exist = false)
    private String preName;
//    @TableField(exist = false)
//    private Integer showNum;
}
